package com.fashionista;


import android.widget.ImageView; 

/**
 * A class used to determine the proper attire to wear
 * 
 * @author Trevor Adelman, Patrick Koperwas, Tong Wu, Shayan Yassami
 * @version for cs48 group project, 3/11/2011
 */
public class outfitSelector {
	private float temperature;
	
	/**
	 * Sets the temperature of the class
	 * @param newTemp the temperature to set to
	 */
	public void setTemperature(float newTemp) {
		temperature = newTemp;
	}

	/**
	 * Suggests the proper attire based on the temperature
	 * @return integer representation of which set of clothing to wear.
	 */
	public Integer suggestShirtType () {
		int type=0;
		if (temperature >= 40 && temperature < 50) {
			type = 1; // return shirt + jacket
		}
		if (temperature >= 50 && temperature < 60) {
			type = 2; // return shirt + thick sweatshirt or light jacket
		}
		if (temperature >= 60 && temperature < 70) {
			type = 3; // return shirt + sweatshirt
		}
		if (temperature >= 70 && temperature < 90) {
			type = 4; // return shirt
		}
		return type;
		}
	
	/**
	 * Method to retrieve the temperature
	 * @return the temperature
	 */
	public Float returnTemp() {
		return temperature;
	}
	
}

